package gcontent.db;

import java.sql.*;

public class DBParams {
	public enum Direction {
		d_input,
		d_output,
		d_input_output,
		d_return_value
	};
	
	private int type;
	private Direction direction;
	private Object value;
	private Object ret_value;
	
	public DBParams(int type, Direction direction, Object value) {
		this.type = type;
		this.direction = direction;
		this.value = value;
	}
	
	public DBParams() {
		this.type = Types.NULL;
		this.direction = Direction.d_input;
		this.value = null;
	}

	public void setType(int type) {
		this.type = type;
	}

	public void setDirection(Direction direction) {
		this.direction = direction;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public void setRet_value(Object retValue) {
		ret_value = retValue;
	}

	public int getType() {
		return Integer.valueOf(String.valueOf(type));
	}
	
	public Direction getDirection() {
		return direction;
	}
	
	public Object getValue() {
		return value;
	}	
	
	public void setRetValue(Object value) {
		this.ret_value = value;
	}
	
	public Object getRetValue() {
		return this.ret_value;
	}
}
